import http from "@/utils/request";

/**
 * 课程评论列表
 * @param params
 */
export const courseCommentsPage = (params: any) => {
  return http.request({
    url: '/api/v1/course/comment/page',
    method: 'get',
    params: params,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

export const courseComment = (id: any) => {
  return http.request({
    url: '/api/v1/course/comment/getCourseForm?id='+id,
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
